# class Solution:
#     def getSum(self, a: int, b: int) -> int:
#         MASK = 0x100000000
#         # 整型最大值
#         MAX_INT = 0x7FFFFFFF
#         MIN_INT = MAX_INT + 1
#         while True:
#             if b != 0:
#                 c = (a ^ b)
#                 print(c)
#                 c = c % MASK
#                 print(c)
#                 b = (a & b) << 1
#                 a = c % MASK
#                 print(a)
#             else:
#                 return a if a <= MAX_INT else ~((a % MIN_INT) ^ MAX_INT)
#
#
#     s = getSum(0,-200,1)
#     print(s)
#
#
#
#
#
# 4294967296

# N = 3
# student = []
# for i in range(5):
#     student.append(["", "", []])
#
#
# def input_stu(stu):
#     for i in range(N):
#         stu[i][0] = input("input student num:")
#         stu[i][1] = input("imput student name:")
#         for j in range(3):
#             stu[i][2].append(int(input("score:")))
#
#
# def output_stu(stu):
#     for i in range(N):
#         print("% - 6s% -10s" % (stu[i][0], stu[i][1]))
#         for j in range(3):
#             print("% - 8d" % stu[i][2][j])
#
#
# if __name__ == '__main__':
#     input_stu(student)
#     print(student)
#     output_stu(student)

# if __name__ == '__main__':
#     ptr = []
#     for i in range(5):
#         num = int(input("please input a number:"))
#         ptr.append(num)
#     print(ptr)

# if __name__ == '__main__':
#     ptr = []
#     for i in range(5):
#         num = int(input("please input a number:"))
#         ptr.append(num)
#     print(ptr)
#     ptr.reverse()
#     print(ptr)

# if __name__ == '__main__':
#     a = [1,4,3]
#     b = [3,4,5]
#     a.sort()
#     print(a)
#
#     print(a,b)
#     print(a + b)
#     a.extend(b)
#     print(a)

# if __name__ == '__main__':
#     for i in range(5):
#         n = 0
#         if i != 1:
#             n += 1
#         if i == 3:
#             n += 1
#         if i == 4:
#             n += 1
#         if i != 4:
#             n += 1
#         if n == 3:
#             print(64 + i)

# def peven(n):
#     i = 0
#     s = 0.0
#     for i in range(2,n+1,2):
#         s += 1 / i
#     return s
#
#
# def podd(n):
#     s = 0
#     for i in range(1, n+1, 2):
#         s += 1 / i
#     return s
#
#
# def dcall(fp,n):
#     s = fp(n)
#     return s
#
# if __name__ == '__main__':
#     n = int(input("input a number:"))
#     if n % 2 == 0:
#         sum = peven(n)
#     else:
#         sum = podd(n)
#     print(sum)

# if __name__ == "__main__":
#     s = ["man","women","girl","boy","sister"]
#     for i in range(len(s)):
#         print(s[i])

# if __name__ == '__main__':
#     person = {"li":18,"wang":50,"zhang":20,"sun":22}
#     m = "li"
#     for key in person:
#         if person[m] < person[key]:
#             m = key
#     print("%s, %d" % (m,person[m]))

# if __name__ == '__main__':
#     str1 = input("input string:")
#     str2 = input("input string:")
#     str3 = input("input string:")
#     print(str1,str2,str3)
#
#     if str1 > str2:
#         str1,str2 = str2,str1
#     if str1 > str3:
#         str1,str3 = str3,str1
#     if str2 > str3:
#         str2,str3 = str3,str2
#
#     print("after being sorted")
#     print(str1,str2,str3)

# if __name__ == '__main__':
#     i = 0
#     j = 1
#     x = 0
#     while i < 5:
#         x= 4 * j
#         for i in range(0,5):
#             if x % 4 != 0:
#                 break
#             else:
#                 i +=1
#             x = (x/4) * 5 + 1
#         j += 1
#     print(x)

# a = 809
# for i in range(10,100):
#     b = i * a
#     if b >= 1000 and b <= 10000 and 8 * i < 100 and 9 * i >= 100:
#         print(b,"= 800 *", i, "+ 9 *", i)

# if __name__ == '__main__':
#     n = 0
#     p = input("input a octal number:")
#     for i in range(len(p)):
#         n = n * 8 + ord(p[i]) - ord("0")
#     print(n)

# if __name__ == '__main__':
#     sum = 4
#     s = 4
#     for j in range(2,10):
#         print(sum)
#         if j <= 2:
#             s *= 7
#         else:
#             s *= 8
#         sum += s
#     print(sum)

# delimiter = "!"
# mylist = ["Brazil", "Russia", "India", "China"]
# print(mylist)
# print(delimiter.join(mylist))

# if __name__ == '__main__':
# #     zi = int(input("输入一个数字："))
# #     n1 = 1
# #     c9 = 1
# #     m9 = 9
# #     sum = 9
# #     while n1 != 0:
# #         if sum % zi == 0:
# #             n1 = 0
# #         else:
# #             m9 *= 10
# #             sum += m9
# #             c9 += 1
# #     print("%d 个 9 可以被 %d 整除: %d" % (c9,zi,sum))
# #     r = sum / zi
# #     print("%d / %d = %d" % (sum,zi,r))

# if __name__ == '__main__':
#     a = "abcsde"
#     b = "bdfhjinpq"
#     c = a + b
#     print(c)

# if __name__ == '__main__':
#     class student:
#         x = 0
#         c = 0
#     def f(stu):
#         stu.x = 20
#         stu.c = "c"
#     a = student()
#     a.x = 3
#     a.c = "a"
#     f(a)
#     print(a.x,a.c)

# if __name__ == '__main__':
#     n = 1
#     while n <= 7:
#         a = int(input("input a number:"))
#         while a < 1 or a > 50:
#             a = int(input("input a number:"))
#         print(a * "*")
#         n += 1

# if __name__ == '__main__':
#     a = int(input("输入四个数字："))
#     aa = []
#     aa.append(a % 10)
#     aa.append(a % 100 //10)
#     aa.append(a % 1000 // 100)
#     aa.append(a // 1000)
#     for i in range(4):
#         aa[i] += 5
#         aa[i] %= 10
#     print(aa)
#     for i in range(2):
#         aa[i],aa[3-i] = aa[3-i],aa[i]
#     print(aa)
#     for i in range(3,-1,-1):
#         print(aa[i],end="")

# testlist = [10086,"中国移动",[1,2,3,4]]
# print(len(testlist))
# print(testlist[-1])
# print(testlist.pop(1))
# print(len(testlist))
# print(testlist)
#
# matrix = [[1,2,3],
#           [4,5,6],
#           [7,8,9]]
# print(matrix)
# print(matrix[1])
# col2 = [row[1] for row in matrix]
# print(col2)
# col2even = [row[1] for row in matrix if row[1] % 2 == 0]
# print(col2even)

# if __name__ == '__main__':
#     import time
#     print(time.ctime(time.time()))
#     print(time.asctime(time.localtime(time.time())))
#     print(time.asctime(time.gmtime(time.time())))

# if __name__ == '__main__':
#     import time
#     start = time.time()
#     for i in range(3000):
#         print(i)
#     end = time.time()
#     print(end - start)

# if __name__ == '__main__':
#     import time
#     start = time.clock()
#     for i in range(10000):
#         print(i)
#     end = time.clock()
#     print("different is %6.3f" % (end -start))

# if __name__ == '__main__':
#     import time
#     import random
#
#     play_it = input('do you want to play it.(\'y\' or \'n\')')
#     while play_it == 'y':
#         c = input('input a character:\n')
#         i = random.randint(0, 2 ** 32) % 100
#         print('please input number you guess:\n')
#         start = time.clock()
#         a = time.time()
#         guess = int(input('input your guess:\n'))
#         while guess != i:
#             if guess > i:
#                 print('please input a little smaller')
#                 guess = int(input('input your guess:\n'))
#             else:
#                 print('please input a little bigger')
#                 guess = int(input('input your guess:\n'))
#         end = time.clock()
#         b = time.time()
#         var = (end - start) / 18.2
#         print(var)
#         # print 'It took you %6.3 seconds' % time.difftime(b,a))
#         if var < 15:
#             print('you are very clever!')
#         elif var < 25:
#             print('you are normal!')
#         else:
#             print('you are stupid!')
#         print('Congradulations')
#         print('The number you guess is %d' % i)
#         play_it = input('do you want to play it.')

# from dateutil import parser
# # dt = parser.parse("Aug 28 2015 12:00AM")
# # print(dt)

# if __name__ == '__main__':
#     str1 = input("输入一个字符串：")
#     str2 = input("请输入一个子字符串：")
#     ncount = str1.count(str2)
#     print(ncount)

# if __name__ == '__main__':
#     from sys import stdout
#     filename = input('输入文件名:\n')
#     fp = open(filename,"w")
#     ch = input('输入字符串:\n')
#     while ch != '#':
#         fp.write(ch)
#         stdout.write(ch)
#         ch = input('')
#     fp.close()

# if __name__ == '__main__':
#     fp = open('test.txt','w')
#     string = input('please input a string:\n')
#     string = string.upper()
#     fp.write(string)
#     fp = open('test.txt','r')
#     print(fp.read())
#     fp.close()

# if __name__ == '__main__':
#     import string
#
#     fp = open('test1.txt')
#     a = fp.read()
#     fp.close()
#
#     fp = open('test2.txt')
#     b = fp.read()
#     fp.close()
#
#     fp = open('test3.txt', 'w')
#     l = list(a + b)
#     l.sort()
#     s = ''
#     s = s.join(l)
#     fp.write(s)
#     fp.close()

# i = ["a","b"]
# l = [1,2]
# print(dict([i,l]))

# num = []
# for i in range(2,100):
#     for j in range(2,i):
#         if i % j == 0:
#             break
#     else:
#         num.append(i)
#
# print(num)

words2 = []
words = str(input("输入字符串："))
list1 = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]
list2 = [".-","-...","-.-.","-..",".","..-.","--.","....","..",".---","-.-",".-..","--","-.","---",".--.","--.-",".-.","...","-","..-","...-",".--","-..-","-.--","--.."]
dict4 = dict(zip(list1,list2))
print(dict4)
for i in words:
    a = dict4[i]
    words2.append(a)
print(words2)


